<?php
class Measure {
	function __construct() {
		$this->start = $this->getTime();
	}
	function execute() {
		echo '<div class="gentime">Czas generowania strony: '.round(($this->getTime()-$this->start), 4).'s</div>';
	}
	function getTime() {
		$t = explode(' ', microtime());
		return $t[0]+$t[1];
	}
}
?>
